﻿<Window x:Class="SnowmanConsulting.ProductKeyManager.UI.IconDialog"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:data="clr-namespace:SnowmanConsulting.ProductKeyManager.Data;assembly=SnowmanConsulting.ProductKeyManager.Data"
    Title="IconDialog" Height="300" Width="300" WindowStartupLocation="CenterOwner">
    <Window.Resources>
        <DataTemplate DataType="{x:Type data:ProductIcon}">
            <Image Source="{Binding Path=Image}" Margin="5" Width="32" Height="32"/>
        </DataTemplate>
    </Window.Resources>
    <DockPanel Style="{StaticResource PanelBackground}">
        <DockPanel Style="{StaticResource PanelBackground}" DockPanel.Dock="Top">
            <Button Name="btnBrowse" Margin="5" Content="Browse" DockPanel.Dock="Right"/>
            <Label Margin="5" Content="Icons:" />
        </DockPanel>
        <ToolBarTray DockPanel.Dock="Bottom">
            <ToolBar>
                <Button Width="50" Margin="2" Name="btnOk" Content="Ok"/>
                <Button Width="50" Margin="2" Name="btnCancel" Content="Cancel"/>
            </ToolBar>
        </ToolBarTray>
        <ListBox Name="lstIcons" ItemsSource="{Binding}" ScrollViewer.HorizontalScrollBarVisibility="Disabled">
            <ListBox.ItemsPanel>
                <ItemsPanelTemplate>
                    <WrapPanel IsItemsHost="True" />
                </ItemsPanelTemplate>
            </ListBox.ItemsPanel>
        </ListBox>
    </DockPanel>
</Window>
